package com.example.pc.videodemo.http

import com.example.pc.videodemo.bean.BaseResponse
import com.example.pc.videodemo.bean.IdModel
import io.reactivex.Observable
import okhttp3.MultipartBody
import okhttp3.MultipartReader
import retrofit2.Call
import retrofit2.http.*
import java.io.File

/**
 *  @author: hyzhan
 *  @date:   2019/7/2
 *  @desc:   TODO
 */
interface ApiService {



    @POST("/renren-fast/android/device/controlLogin")
    fun controlLogin(@Body idModel: IdModel): Call<BaseResponse>

    @POST("/renren-fast/android/device/simCardLogin")
    fun simCardLogin(@Body idModel: IdModel): Call<BaseResponse>

    @POST("/renren-fast/android/device/voiceLogin")
    fun voiceLogin(@Body idModel: IdModel): Call<BaseResponse>
    @POST("/renren-fast/agora/getToken")
    fun getToken(@Body idModel: IdModel): Call<BaseResponse>

    @Multipart
    @POST("/renren-fast/sys/oss/upload")
    fun upload(@Part part: MultipartBody.Part): Call<BaseResponse>
    @GET("/renren-fast/agora/getSecretKey")
    fun getSecretKey(): Call<BaseResponse>
}